#/bin/bash
#This script is intended to be run in the /lib directory of the java gdata download.
#It will install all the jars that this project requires in your local maven repo.
mvn install:install-file -Dfile=gdata-client-1.0.jar -DgroupId=com.google.gdata -DartifactId=data -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-core-1.0.jar -DgroupId=com.google.gdata -DartifactId=core -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-client-1.0.jar -DgroupId=com.google.gdata -DartifactId=client -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-media-1.0.jar -DgroupId=com.google.gdata -DartifactId=media -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-youtube-2.0.jar -DgroupId=com.google.gdata -DartifactId=youtube -Dversion=2.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-client-meta-1.0.jar -DgroupId=com.google.gdata -DartifactId=client-meta -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=gdata-youtube-meta-2.0.jar -DgroupId=com.google.gdata -DartifactId=youtube-meta -Dversion=2.0 -Dpackaging=jar

#The following file is taken from the same download but in the deps directory
mvn install:install-file -Dfile=../deps/google-collect-1.0-rc1.jar -DgroupId=com.google.common -DartifactId=google-collect -Dversion=1.0-rc1 -Dpackaging=jar

#The following file is not available in this download :(
#You can get it by following the instructions here: http://code.google.com/p/gdata-java-client-eclipse-plugin/wiki/Installation
# and then looking in your eclipse plugin directory under com.google.gdata_x.x.x (and use the jar in there)
#mvn install:install-file -Dfile=gdataplugin.jar -DgroupId=com.google.gdata -DartifactId=gdataplugin -Dversion=1.0 -Dpackaging=jar